import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes = [
	{
		path: '/account/application/list',
		title: '账户应用管理',
		icon: 'fa fa-user-shield',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/account/IamApplicationList/IamApplicationList')),
		),
	},
	{
		path: '/account/application/config/list',
		title: '账户应用配置',
		icon: 'fa fa-user-gear',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/account/IamApplicationConfigList/IamApplicationConfigList')),
		),
	},
	{
		path: '/account/application/extend/list',
		title: '账户应用扩展配置',
		icon: 'fa fa-user-gear',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/account/IamApplicationExtendList/IamApplicationExtendList')),
		),
	},
	{
		path: '/account/list',
		title: '账户管理',
		icon: 'fa fa-users',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/account/IamAccountList/IamAccountList')),
		),
	},
	{
		path: '/account/profile/list',
		title: '账户基础资料',
		icon: 'fa fa-user-tag',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/account/IamAccountProfileList/IamAccountProfileList')),
		),
	},
	{
		path: '/account/passport/list',
		title: '账户通行证管理',
		icon: 'fa fa-id-card',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/account/IamAccountPassportList/IamAccountPassportList')),
		),
	},
	{
		path: '/account/event/record/list',
		title: '账户操作日志',
		icon: 'fa fa-file-lines',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/account/IamAccountEventRecordList/IamAccountEventRecordList')),
		),
	},
] as ViewRouteDto[]

export default routes
